import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';

class LocalUserInfo2 {
  String? user;
  String? password;
  String? mId;
  String? sessionId;

  LocalUserInfo2({this.user, this.password, this.mId, this.sessionId});

  factory LocalUserInfo2.fromJson(Map<String, dynamic> json) {
    final LocalUserInfo2 localUserInfo = LocalUserInfo2();

    final String? user = jsonConvert.convert<String>(json['user']);
    if (user != null) {
      localUserInfo.user = user;
    }
    final String? password = jsonConvert.convert<String>(json['password']);
    if (password != null) {
      localUserInfo.password = password;
    }
    final String? mId = jsonConvert.convert<String>(json['mId']);
    if (mId != null) {
      localUserInfo.mId = mId;
    }
    final String? sessionId = jsonConvert.convert<String>(json['sessionId']);
    if (sessionId != null) {
      localUserInfo.sessionId = sessionId;
    }
    return localUserInfo;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['user'] = user;
    data['password'] = password;
    data['mId'] = mId;
    data['sessionId'] = sessionId;
    return data;
  }
}
